import { _decorator, CCInteger, Component, Label, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Main')
export class Main extends Component {
    job: String = '法师'

    @property({type: CCInteger})
    hp: number = 100


    @property({type: Label})
    label: Label = null

    start() {
        console.log('hello world', this.job);
        console.log('hp', this.hp);
        this.label.string = '游戏开始'
    }

    update(deltaTime: number) {
        
    }
}


